<?php

namespace Home\Controller;

use soapclient;
use SoapHeader;
use Think\Controller;

class WapTestController extends Controller
{
    function index()
    {
//        $url = 'http://open.12301dev.com/openService/MXSE_beta.wsdl';
//        $data = arrayToXml(array("ac" => '100019', "pw" => 'jjl4yk11f82ce6c0f33a5c003f2fec56', 'n' => '2'));
//        $cli = new SoapClient($url);
//        $h = new SoapHeader('http://127.0.0.1/index.php/Home/WapTest', 'Get_ScenicSpot_List', $data, SOAP_ACTOR_NEXT);
//        $cli->__setSoapHeaders(array($h));
//        try {
//            $cli = new SoapClient($url);
//            $cli->__doRequest($data,$url,'Get_ScenicSpot_List',1,0);
//            var_dump($cli->Get_ScenicSpot_List());
//        } catch (Exception $e) {
//            echo $e->getMessage();
//        }
        // 票付通
        vendor('Piaofutong.Piaofutong');
        $this->piaofutong = new \Piaofutong();
        $req = $this->piaofutong->scenicSpotList();
        $this->display();
    }
}
